import request from '@/utils/request'

// 查询用户报名信息列表
export function listEnroll(query) {
  return request({
    url: '/system/enroll/list',
    method: 'get',
    params: query
  })
}

// 查询用户报名信息详细
export function getEnroll(id) {
  return request({
    url: '/system/enroll/' + id,
    method: 'get'
  })
}

// 新增用户报名信息
export function addEnroll(data) {
  return request({
    url: '/system/enroll',
    method: 'post',
    data: data
  })
}

// 修改用户报名信息
export function updateEnroll(data) {
  return request({
    url: '/system/enroll',
    method: 'put',
    data: data
  })
}

// 删除用户报名信息
export function delEnroll(id) {
  return request({
    url: '/system/enroll/' + id,
    method: 'delete'
  })
}
